package models

// 操作返回信息
type BackBase struct {
	ReturnCode int    `json:"return_code"`
	Msg        string `json:"msg"`
}

func CreatorBackBase(code int, msg string) BackBase {
	return BackBase{ReturnCode: code, Msg: msg}
}

type BackQueryUserInfo struct {
	ReturnCode 		int    `json:"return_code"`
	Msg        		string `json:"msg"`
	OpenId     		string `json:"open_id"`
	UnionId			string `json:"union_id"`
	NickName		string	`json:"nickname"`
	Sex 			int     `json:"sex"`
	HeadImgUrl      string  `json:"headimgurl"`
}

func CreatorBackQueryUserInfo(code int, msg string) BackQueryUserInfo {
	return BackQueryUserInfo{ReturnCode: code, Msg: msg}
}

type BackQueryUserShare struct {
	ReturnCode 		int    `json:"return_code"`
	Msg        		string `json:"msg"`
	InviteCode      string `json:"invite_code"`
}

func CreatorBackQueryUserShare(code int, msg string) BackQueryUserShare  {
	return BackQueryUserShare{ReturnCode: code, Msg: msg}
}

